/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/user', controller.userInfo.info);
  router.post('/addUser', controller.home.addUser);
  router.post('/delUser', controller.home.delUser);
  router.post('/updateUser', controller.home.updateUser);
  router.get('/getUserInfo', controller.home.getUserInfo);
  router.get('/getAllUser', controller.home.getAllUser);
  router.get('/getAllOrder', controller.home.getAllOrder);
};
